package com.yueyang.sojourn.server.service.sojourn.geolocation;

import com.yueyang.sojourn.server.model.po.SojournGeoLocation;
import org.apache.ibatis.annotations.Param;

/**
 * @author yemingxing
 * @summary
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-02-15 19:55
 */
interface SojournGeoLocationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SojournGeoLocation record);

    int insertSelective(SojournGeoLocation record);

    SojournGeoLocation selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SojournGeoLocation record);

    int updateByPrimaryKey(SojournGeoLocation record);

    //====================================basic mapper===============================================//

    SojournGeoLocation selectByProjectId(@Param("projectId") long projectId);

    void invalidByProjectId(@Param("projectId") long projectId);
}